package training02;

/**
 * 盗贼
 */
public class Robber extends Role implements Attack{
    public Robber() {
    }

    public Robber(String name, int level) {
        super(name, level);
    }
    public void intro(){
        System.out.println("我是盗贼\n");
        super.intro();
    }
    public void rob(Role role){
        System.out.println("我偷取了" + role.getName() + "物品");
    }

    @Override
    public void attack(Role role) {
        System.out.println("我是盗贼，我向" + role + "发起了攻击");
    }
}
